package ua.tach.shortl.logic;

public class TrainSet {
	private int yearMin;
	private int yearMax;
	public int loco;
	public int[] w = new int[4];

	public TrainSet(int y1, int y2, int l, int w1, int w2, int w3, int w4) {
		yearMin = y1;
		yearMax = y2;
		loco = l;
		w[0] = w1;
		w[1] = w2;
		w[2] = w3;
		w[3] = w4;
	}

	public boolean allow(int year) {
		return (year > yearMin && year < yearMax);
	}
}
